package com.ebo.synframework.nettybase.codec;

import java.util.HashMap;
import java.util.Map;

public class LengthOptimizeConfig {

	private Map<String, String> encoderServiceNameMap = new HashMap<String, String>();
	
	private Map<String, String> encoderProtoNameMap = new HashMap<String, String>();
	
	private Map<String, String> decoderServiceNameMap = new HashMap<String, String>();
	
	private Map<String, String> decoderProtoNameMap = new HashMap<String, String>();
	
	public void addService(String actName, String replaceName) {
		this.encoderServiceNameMap.put(actName, replaceName);
		this.decoderServiceNameMap.put(replaceName, actName);
	}
	
	public void addProto(String actName, String replaceName) {
		this.encoderProtoNameMap.put(actName, replaceName);
		this.decoderProtoNameMap.put(replaceName, actName);
	}

	public Map<String, String> getEncoderServiceNameMap() {
		return encoderServiceNameMap;
	}

	public Map<String, String> getEncoderProtoNameMap() {
		return encoderProtoNameMap;
	}

	public Map<String, String> getDecoderServiceNameMap() {
		return decoderServiceNameMap;
	}

	public Map<String, String> getDecoderProtoNameMap() {
		return decoderProtoNameMap;
	}
	
}
